package com.nexus.all.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringParameterConfig {

    /**
     * ossUrl
     */
    @Value("${storage.aliyun.url:}")
    private String ossUrl;

    /**
     * 是否启用登录验证码
     */
    @Value("${captcha.enable:false}")
    private Boolean enableCaptcha;

    /**
     * 验证码模板
     */
    @Value("${sms.captchaTemplate.TemplateCode:}")
    private String captchaTemplateCode;
    @Value("${sms.captchaTemplate.singName:}")
    private String captchaSingName;

    /**
     * 时间邮件私钥
     */
    @Value("${nexus.rsa.privateKey.userTimeMail:}")
    private String userTimeMailPrivateKey;

    public String getOssUrl() {
        return ossUrl;
    }

    public Boolean getEnableCaptcha() {
        return enableCaptcha;
    }

    public String getCaptchaTemplateCode() {
        return captchaTemplateCode;
    }

    public String getCaptchaSingName() {
        return captchaSingName;
    }

    public String getUserTimeMailPrivateKey() {
        return userTimeMailPrivateKey;
    }
}
